package tets;

public class Test6 {
    public  static  int is_prme(int i){
        if(i<=1)
            return 0;
        for(int j=2;j<=Math.sqrt(i);j++){
            if(i%j==0){
                return 0;
            }
        }
        return 1;
    }
    public static void main(String[] args) {
        for (int i = 1; i <=10000 ; i++) {
            if(is_prme(i)==1)
                System.out.println(i);
        }
    }
}
